import request from '@/utils/request'
import axios from "axios";

const url = 'http://175.6.210.233:8001/'

export function getChartData() {
  return axios.get(url + 'api/visits/chartData').then(res => res.data)
}

export function gett(storeId) {
  return axios.get(url + 'api/data/count?storeId=' + storeId).then(res => res.data)
}

export function chart(storeId) {
  return axios.get(url + 'api/data/chart?storeId=' + storeId).then(res => res.data)
}

export function getOrderCount(storeId) {
  return axios.get(url + 'api/yxStoreOrder/orderCount?storeId=' + storeId).then(res => res.data)
}

export function rankByStoreMoney() {
  return axios.get(url + 'api/data/rankByStoreMoney').then(res => res.data)
}

export function rankByStoreOrder() {
  return axios.get(url + 'api/data/rankByStoreOrder').then(res => res.data)
}

export function store_list() {
  return axios.get('http://175.6.210.233:8008/api/store_list').then(res => res.data.data)
}
